package com.apexedu.eas.entity;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * 排课信息
 * Created with IntelliJ IDEA.
 * User: ly
 * Date: 13-11-7
 * Time: 下午4:44
 * To change this template use File | Settings | File Templates.
 */
@javax.persistence.Table(name = "TJX_JHJXB")
@Entity
public class TjxPkxx {
	private Long id;
	private Long xn;
	private Long xq;
	private Integer pkqr;//排课确认0:否，1:是
	private Integer ctzt;//冲突状态1:未冲突，2:有冲突
	private String ctms;//冲突描述
	private Long jxb;//教学班
	private Integer jxbrssx;//教学班人数上限
	private Long kc;
	private String kcmc; //课程名称
	private String kcbh; //课程编号
	private Long hbKcsx; //课程属性
    private Long hb_rkkclb;//课程类别
    private Long jxblb; //教学班类别
	private Integer zks; //总课时
	private Integer wks; //周课时
	private String gxjg0101; //任课教师(备选)
	private Long hbJslx; //教室类型
	private String bj; //班级
	private String jcxx; //教材信息
	private Integer sfypk; //是否以排课 0:否 1:是
	private Integer sfytj; //是否已提交 0:否 1:是
    private Integer gljs; //行政班的关联教室

    private Integer fhbfs;//分合班方式

    /**
     * 班级名称
     */
    private String bjmc;

	/**
	 * 已选人数
	 */
	private Integer yxrs; //已选人数
	/**
	 * 学生是否确认的状态
	 */
	private String zt; //状态 0未选 1已选
	/**
	 * 审核的状态
	 */
	private String shzt; //1通过 -1退回 0未审核
	/**
	 * 排课明细信息集合
	 */
	private List<TjxPkxxMx> listPkmx = new ArrayList<TjxPkxxMx>();
	/**
	 * 任课教师集合
	 */
	private List<CommonPojo> listLs = new ArrayList<CommonPojo>();

    /**
     * 行政班集合
     */
    private List<CommonPojo> listXzb = new ArrayList<CommonPojo>();
	/**
	 * 教学班名称
	 */
	private String jxbmc;
	/**
	 * 课程属性
	 */
	private String kcsx;

    /**
     * 课程类别
     */
    private String kclb;

    /**
     * 课程考核方式
     */
    private String khfsmc;

    /**
     * 关联教室名称
     */
    private String gljsmc;

    /**
     * 关联教室座位数
     */
    private String gljszws;

    /**
     * 教学班类别名称
     */
    private String jxblbmc;

    /**
     * 开始周
     */

    private Integer ksz;

    /**
     * 结束周
     */
    private Integer jsz;

    /**
     * 开课院系
     */
    private Integer zzjg;

    /**
     * 开课院系名称
     */
    private String zzjgmc;

    /**
     * 教学班教师姓名
     */

    private String jxbjsxm;

    /**
     * 合班情况
     */

    private String hbqk;

	@javax.persistence.Column(name = "ID")
	@Id
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@javax.persistence.Column(name = "XN")
	@Basic
	public Long getXn() {
		return xn;
	}

	public void setXn(Long xn) {
		this.xn = xn;
	}

	@javax.persistence.Column(name = "XQ")
	@Basic
	public Long getXq() {
		return xq;
	}

	public void setXq(Long xq) {
		this.xq = xq;
	}

	@javax.persistence.Column(name = "PKQR")
	@Basic
	public Integer getPkqr() {
		return pkqr;
	}

	public void setPkqr(Integer pkqr) {
		this.pkqr = pkqr;
	}

	@javax.persistence.Column(name = "CTZT")
	@Basic
	public Integer getCtzt() {
		return ctzt;
	}

	public void setCtzt(Integer ctzt) {
		this.ctzt = ctzt;
	}

	@javax.persistence.Column(name = "CTMS")
	@Basic
	public String getCtms() {
		return ctms;
	}

	public void setCtms(String ctms) {
		this.ctms = ctms;
	}

	@javax.persistence.Column(name = "JXB")
	@Basic
	public Long getJxb() {
		return jxb;
	}

	public void setJxb(Long jxb) {
		this.jxb = jxb;
	}

	@javax.persistence.Column(name = "JXBRSSX")
	@Basic
	public Integer getJxbrssx() {
		return jxbrssx;
	}

	public void setJxbrssx(Integer jxbrssx) {
		this.jxbrssx = jxbrssx;
	}

	@javax.persistence.Column(name = "KC")
	@Basic
	public Long getKc() {
		return kc;
	}

	public void setKc(Long kc) {
		this.kc = kc;
	}

	@javax.persistence.Column(name = "KCMC")
	@Basic
	public String getKcmc() {
		return kcmc;
	}

	public void setKcmc(String kcmc) {
		this.kcmc = kcmc;
	}

	@javax.persistence.Column(name = "KCBH")
	@Basic
	public String getKcbh() {
		return kcbh;
	}

	public void setKcbh(String kcbh) {
		this.kcbh = kcbh;
	}

	@javax.persistence.Column(name = "HB_KCSX")
	@Basic
	public Long getHbKcsx() {
		return hbKcsx;
	}

	public void setHbKcsx(Long hbKcsx) {
		this.hbKcsx = hbKcsx;
	}



    /////////////////////
    @javax.persistence.Column(name = "HB_RKKCLB")
    @Basic


    public Long getHb_rkkclb() {
        return hb_rkkclb;
    }

    public void setHb_rkkclb(Long hb_rkkclb) {
        this.hb_rkkclb = hb_rkkclb;
    }



    @javax.persistence.Column(name = "JXBLB")
    @Basic
    public Long getJxblb() {
        return jxblb;
    }

    public void setJxblb(Long jxblb) {
        this.jxblb = jxblb;
    }

    @javax.persistence.Column(name = "FHBFS")
    @Basic
    public Integer getFhbfs() {
        return fhbfs;
    }

    public void setFhbfs(Integer fhbfs) {
        this.fhbfs = fhbfs;
    }

    @javax.persistence.Column(name = "ZKS")
	@Basic
	public Integer getZks() {
		return zks;
	}

	public void setZks(Integer zks) {
		this.zks = zks;
	}

	@javax.persistence.Column(name = "WKS")
	@Basic
	public Integer getWks() {
		return wks;
	}

	public void setWks(Integer wks) {
		this.wks = wks;
	}

	@javax.persistence.Column(name = "GXJG0101")
	@Basic
	public String getGxjg0101() {
		return gxjg0101;
	}

	public void setGxjg0101(String gxjg0101) {
		this.gxjg0101 = gxjg0101;
	}

	@javax.persistence.Column(name = "HB_JSLX")
	@Basic
	public Long getHbJslx() {
		return hbJslx;
	}

	public void setHbJslx(Long hbJslx) {
		this.hbJslx = hbJslx;
	}

	@javax.persistence.Column(name = "BJ")
	@Basic
	public String getBj() {
		return bj;
	}

	public void setBj(String bj) {
		this.bj = bj;
	}

	@javax.persistence.Column(name = "JCXX")
	@Basic
	public String getJcxx() {
		return jcxx;
	}

	public void setJcxx(String jcxx) {
		this.jcxx = jcxx;
	}

	@javax.persistence.Column(name = "SFYPK")
	@Basic
	public Integer getSfypk() {
		return sfypk;
	}

	public void setSfypk(Integer sfypk) {
		this.sfypk = sfypk;
	}

	@javax.persistence.Column(name = "SFYTJ")
	@Basic
	public Integer getSfytj() {
		return sfytj;
	}

	public void setSfytj(Integer sfytj) {
		this.sfytj = sfytj;
	}



    @javax.persistence.Column(name = "JS")
    @Basic
    public Integer getGljs() {
        return gljs;
    }

    public void setGljs(Integer gljs) {
        this.gljs = gljs;
    }

    @javax.persistence.Column(name = "ZZJG")
    @Basic
    public Integer getZzjg() {
        return zzjg;
    }

    public void setZzjg(Integer zzjg) {
        this.zzjg = zzjg;
    }

    @javax.persistence.Column(name = "JXBJSXM")
    @Basic
    public String getJxbjsxm() {
        return jxbjsxm;
    }

    public void setJxbjsxm(String jxbjsxm) {
        this.jxbjsxm = jxbjsxm;
    }


    @Transient
    public String getZzjgmc() {
        return zzjgmc;
    }

    public void setZzjgmc(String zzjgmc) {
        this.zzjgmc = zzjgmc;
    }

    @Transient
    public String getBjmc() {
        return bjmc;
    }

    public void setBjmc(String bjmc) {
        this.bjmc = bjmc;
    }

    /**
     * @javax.persistence.Column(name = "SFYTJ")
     * @Basic表示数据库里面是存在这个字段的
     *
     * @Transient表示数据库里面是没有这个字段的就是不对应
     *
     */

	@Transient
	public List<TjxPkxxMx> getListPkmx() {
		return listPkmx;
	}

	public void setListPkmx(List<TjxPkxxMx> listPkmx) {
		this.listPkmx = listPkmx;
	}

	@Transient
	public List<CommonPojo> getListLs() {
		return listLs;
	}

	public void setListLs(List<CommonPojo> listLs) {
		this.listLs = listLs;
	}


    @Transient
    public List<CommonPojo> getListXzb() {
        return listXzb;
    }

    public void setListXzb(List<CommonPojo> listXzb) {
        this.listXzb = listXzb;
    }

    @Transient
	public String getJxbmc() {
		return jxbmc;
	}

	public void setJxbmc(String jxbmc) {
		this.jxbmc = jxbmc;
	}

	@Transient
	public String getKcsx() {
		return kcsx;
	}

	public void setKcsx(String kcsx) {
		this.kcsx = kcsx;
	}



    @Transient
    public String getKclb() {
        return kclb;
    }

    public void setKclb(String kclb) {
        this.kclb = kclb;
    }

    @Transient
    public String getKhfsmc() {
        return khfsmc;
    }

    public void setKhfsmc(String khfsmc) {
        this.khfsmc = khfsmc;
    }

    @Transient
    public String getJxblbmc() {
        return jxblbmc;
    }

    public void setJxblbmc(String jxblbmc) {
        this.jxblbmc = jxblbmc;
    }

    @Transient
    public Integer getKsz() {
        return ksz;
    }

    public void setKsz(Integer ksz) {
        this.ksz = ksz;
    }

    @Transient
    public Integer  getJsz() {
        return jsz;
    }

    public void setJsz(Integer jsz) {
        this.jsz = jsz;
    }



    @Transient
    public String getGljsmc() {
        return gljsmc;
    }

    public void setGljsmc(String gljsmc) {
        this.gljsmc = gljsmc;
    }

    @Transient
    public String getGljszws() {
        return gljszws;
    }

    public void setGljszws(String gljszws) {
        this.gljszws = gljszws;
    }

    @Transient
	public int getPkmxSize() {
		return listPkmx.size();
	}

	@Transient
	public TjxPkxxMx getPkmx0() {
		return listPkmx.isEmpty() ? null : listPkmx.get(0);
	}

	@Transient
	public Integer getYxrs() {
		return yxrs;
	}

	@Transient
	public void setYxrs(Integer yxrs) {
		this.yxrs = yxrs;
	}

	@Transient
	public String getShzt() {
		return shzt;
	}

	@Transient
	public void setShzt(String shzt) {
		this.shzt = shzt;
	}

	@Transient
	public String getZt() {
		return zt;
	}

	@Transient
	public void setZt(String zt) {
		this.zt = zt;
	}

    @Transient
    public String getHbqk() {
        return hbqk;
    }

    public void setHbqk(String hbqk) {
        this.hbqk = hbqk;
    }
}
